查询分析文本导出任务 - 子任务列表
查询分析文本导出任务 - 子任务列表
- 请求地址: /v2/webservice/table/analysis-export-task/strategy-list
- 请求方法: POST
- 接口描述: 获取指定任务的策略配置列表(最多10条,不分页)
请求参数
请求体参数
| 参数名 | 类型 | 必填 | 描述 |
|---|
| set_id | number | 是 | 集群ID |
| app_id | number | 是 | 应用 ID |
| task_name | string | 是 | 任务名称 |
请求示例
{
"set_id": 1,
"app_id": 100915,
"task_name": "analysis_task_001"
}
返回参数
| 参数名 | 类型 | 描述 |
|---|
| code | number | 错误码,0 表示成功 |
| message | string | 错误信息,成功时为 “success” |
| data | object | 返回数据 |
| data.list | array | 策略配置列表 |
| data.total | number | 策略总数 |
list 数组元素参数
| 参数名 | 类型 | 描述 |
|---|
| strategy_name | string | 策略名称 |
| filter_sql | string | 过滤 SQL 语句 |
| output_file_complex_field_encode_type | string | 复杂字段编码类型,可选值:“base64”、“json” |
| output_file_format_type | number | 输出文件格式类型,0: 分析型文本, 1: 敏感词文本 |
| output_file_upload_type | number | 上传类型,0: 不上传, 1: SCP上传到服务器, 2: 上传到COS服务, 3: 上传到UGC服务 |
| scp_machine_config | array | SCP机器配置(当 output_file_upload_type=1 时返回) |
| cos_server_config | object | COS服务配置(当 output_file_upload_type=2 时返回) |
| ugc_server_config | object | UGC服务配置(当 output_file_upload_type=3 时返回) |
返回示例
成功返回
{
"code": 0,
"request_id": "37809b96-85d0-48e5-86ea-fd752cf3286a",
"data": {
"list": {
"list": [
{
"set_id": 1,
"app_id": 6,
"task_name": "test_cos",
"strategy_name": "sunqi_test",
"filter_sql": "WHERE level > 10",
"output_file_complex_field_encode_type": "json",
"output_file_format_type": 0,
"output_file_upload_type": 2,
"output_file_upload_destination_info": "1.1.1.1;sd1212;dwdwdwfef;dwdwdw-dwd;/cos",
"cos_server_config": {
"end_point": "1.1.1.1",
"access_key_id": "sd1212",
"access_key_secret": "dwdwdwfef",
"access_bucket_name": "dwdwdw-dwd",
"dest_dir": "/cos"
},
"app_name": "sunqi_test_project",
"set_name": "test_set"
}
],
"total": 1
}
}
}
失败返回
{
"code": 102,
"message": "任务 analysis_task_999 不存在",
"data": null
}